//
//  YTRecomArticleCell.m
//  yitaicaijing
//
//  Created by DIANGHONG on 2018/7/20.
//  Copyright © 2018年 DIANGHONG. All rights reserved.
//

#import "YTRecomArticleCell.h"
@interface YTRecomArticleCell ()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIImageView *avatorImageView;
@property (weak, nonatomic) IBOutlet UILabel *authorLabel;
@property (weak, nonatomic) IBOutlet UIImageView *imgView;
@property (weak, nonatomic) IBOutlet UILabel *lookCountLabel;

@end
@implementation YTRecomArticleCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(YTRecommedArticleModel *)model
{
    _model = model;
    
    self.titleLabel.text = model.post_title;
    [self.avatorImageView sd_setImageWithURL:[NSURL URLWithString:model.user_avatar]];
    [self.imgView sd_setImageWithURL:[NSURL URLWithString:model.purl]];
    self.authorLabel.text = model.display_name;
    self.lookCountLabel.text = model.views;
}

@end
